package de.tum.icuproject.persistence;

import de.tum.icuproject.model.Session;

/**
 * Interface for data layer
 * @author stefanoturchetta
 *
 */
public interface SessionRepository {

	/**
	 * Finds a session via a sessionId
	 * @param sessionId
	 */
	public void findByPlayerIdAndActivityId(int playerId, int activityId);

	/**
	 * Insert a new session
	 * @param session
	 */
	public void insert(Session session);

	/**
	 * Generates an available id to assign to a new session based on playerId and activityId
	 */
	public void generateSessionId(int playerId, int activityId);

}
